package sys.news.pojo;

import java.util.Date;

/**
 * 评论类
 */
public class Comments {
    /**
     * 评论id
     */
    private int cid;
    /**
     * 评论名id
     */
    private int cnid;
    /**
     *评论内容
     */
    private  String ccontent;
    /**
     * 评论时间
     */
    private Date cdate;
    /**
     * 评论ip地址
     */
    private  String  cip;
    /**
     * 评论者
     */
    private  String cauthor;
//无参构造方法


    public Comments() {
    }
    //get、set访问方法

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public int getCnid() {
        return cnid;
    }

    public void setCnid(int cnid) {
        this.cnid = cnid;
    }

    public String getCcontent() {
        return ccontent;
    }

    public void setCcontent(String ccontent) {
        this.ccontent = ccontent;
    }

    public Date getCdate() {
        return cdate;
    }

    public void setCdate(Date cdate) {
        this.cdate = cdate;
    }

    public String getCip() {
        return cip;
    }

    public void setCip(String cip) {
        this.cip = cip;
    }

    public String getCauthor() {
        return cauthor;
    }

    public void setCauthor(String cauthor) {
        this.cauthor = cauthor;
    }

    @Override
    public String toString() {
        return "Comments{" +
                "cid=" + cid +
                ", cnid=" + cnid +
                ", ccontent=" + ccontent +
                ", cdate=" + cdate +
                ", cip=" + cip +
                ", cauthor=" + cauthor +
                '}';
    }
    //13212消防车水电费
}
